package com.tsj.mvp.demo6;

/**
 * 专门复制交互（中介，关联view和model）
 * */
public class LoginPresenter6 extends BasePresenter6<LoginView6> {

    public LoginModel6 loginModel;

    public LoginPresenter6(){
        loginModel = new LoginModel6();
    }

    public void login(String username,String password){
        loginModel.login(username, password, new LoginModel6.CallBack() {
            @Override
            public void callback(String result) {
                if(getView() != null){
                    getView().onLoginResult(result);
                }
            }
        });
    }

}
